home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_2 / unit.obj / comp.sys.handhelds_3385_000000.msg
Internet Message Format  |  1991-04-12  |  2KB

  1. Path: en.ecn.purdue.edu!noose.ecn.purdue.edu!samsung!zaphod!unix.cis.pitt.edu!dsinc!ub!acsu.buffalo.edu
  2. From: cloos@acsu.buffalo.edu (James H. Cloos)
  3. Newsgroups: comp.sys.handhelds
  4. Subject: On Unit Objects
  5. Message-ID: <54397@eerie.acsu.Buffalo.EDU>
  6. Date: 15 Jan 91 02:01:11 GMT
  7. Sender: news@acsu.Buffalo.EDU
  8. Organization: State University of New York @ Buffalo
  9. Lines: 40
  10. Nntp-Posting-Host: lictor.acsu.buffalo.edu
  11.  
  12. Hello all.  Hope you had a good holiday season.
  13.  
  14. (Hmmm, after this I think that the linked array will be the only
  15. object type whose format is unknown (to the net at large).)
  16.  
  17. Before I proceed, thanks to Jan & Derek for compiling their internals
  18. lists, 'frechett@boulder' for posting Derek's to c.s.h, and Jake for
  19. combining it with Jan's list.  Without Derek's list in specific, I
  20. would not have figured this out as quickly.
  21.  
  22. Anyway, it turns out that Unit objects are stored just like lists,
  23. programs, and algebraics (aka Symbolics).  The format looks like this:
  24. UNIT real unit1 _ ; 
  25. (where 'unit1' would be a string) for a simple un-prefixed unit, such
  26. as 2_m.  The '_' though, is just an empty list, but a specific empty
  27. list.
  28.  
  29. The prefixes are implemented by combining a CHARACTER with the string
  30. representing the main unit.
  31.  
  32. (This room is closing shortly, so I'll be blunt below.  Questions are
  33. gladly answered ;)
  34.  
  35. The five list's addresses    What they do
  36. ------------            ------------
  37. 10b72                ^ aka power
  38. 10b5e                * aka mult
  39. 10b68                / aka divide
  40. 10b86                _ aka combine real to units
  41. 10b7c                combine character prefix to unit string
  42.  
  43.  
  44. I have to go now, so I'll post a followup tomorrow with some more
  45. info, but this should whet your appatite 'till then.  ;)
  46.  
  47. -JimC
  48. --
  49. James H. Cloos, Jr.        Phone:  +1 716 673-1250
  50. cloos@ACSU.Buffalo.EDU        Snail:  PersonalZipCode:  14048-0772, USA
  51. cloos@ub.UUCP            Quote:  <>
  52.